<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Language" content="UTF-8" />
    <meta name="theme-color" content="#000000" />
    <script type="text/javascript">
        function t(text, obj) {
            if (window.__i18n__) {
                try{
                    var json = window.__i18n__.resources[window.__i18n__.locale]['translation']
                    if(obj){
                        for(var key in obj){
                            var reg = new RegExp("{{" + key + "}}");
                            json[text] = json[text].replace(reg, obj[key])
                        }
                        return json[text]
                    }else{
                        return json[text]
                    }
                }catch(err){}
            } else {
                return text
            }
        }

        document.title= t(window.__COMPANY_INFO_i18n_key.title);

        setTimeout(function () {
            var explorer = window.navigator.userAgent.toLowerCase();

            var rMsie = /(msie\s|trident.*rv:)([\w.]+)/;
            var match = rMsie.exec(explorer);
            if (match != null) {
                var ieVersion = match[2] || "0";
                if (ieVersion.indexOf("11") >= 0) {

                } else {
                    var rootDom = document.getElementById('root');
                    if (rootDom && rootDom.innerHTML == t('当前浏览器不支持，推荐使用Chrome及IE11浏览器')) {
                        rootDom.style.color = '#4e4e4e';
                    }
                }
            }

        }, 3000);

    </script>
</head>

<body>
    <div id="root" style="color:white;"></div>
</body>

<script type="module" src="../src/pages/share/main.tsx"></script>

</html>
